<template>
    <div>
        <Form ref="form"/>
        <el-button type="primary" @click="onSubmit">立即创建</el-button>
    </div>
</template>

<script>
    import Form from './form/index'
    export default {
        name: "create",
        components:{
            Form
        },
        methods:{
            async onSubmit(){
                let validate = await this.$refs['form'].validate();
                if (validate) {
                    let value = await this.$refs['form'].getValue();
                    console.log(JSON.stringify(value))
                }

            }
        }
    }
</script>

<style scoped>

</style>
